<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>系统选项 -- Powered by CentIMS {$core_version}</title>
		<link href="{'ui/smoothness/jquery-ui-1.8.20.c.css'|jquery}" rel="stylesheet"/>
		<link href="{'bootstrap/css/bootstrap.css'|shared}" rel="stylesheet"/>
		<link href="{'bootstrap/css/bootstrap-responsive.css'|shared}" rel="stylesheet"/>
		<link href="{'common.css'|shared}" rel="stylesheet"/>
		<style type="text/css">
			.opt {
				background-image:url('../images/icons/system.png');
			}
		</style>
		{'core_option_head'|fire}
	</head>
	<body>
		<div class="workspace mgb5">
			<h1 class="title ico opt">系统选项</h1>		    
		</div>	
		<form class="form-horizontal" id="options-form" method="POST" action="./?Ctlr=SaveOption">
			<input type="hidden" name="group" value="{$group}"/>
			<div class="workspace" style="margin:0 15px;">
				<div class="tabbable tabs-left">
					<ul class="nav nav-tabs" style="min-height:385px;">
						<li>&nbsp;</li>
					{foreach $opt_groups as $item}
						<li class="{if $item@key == $group}active{/if}">
							<a href="./?Ctlr=Options&group={$item@key}">{$item}</a>
						</li>
					{/foreach}
					</ul>
	                <div class="tab-content" style="padding-top:10px;">	                	
	                	<div id="tabc-{$group}" class="tab-pane active">
	                		{if $option_tpl}
	                			{include file=$option_tpl}
	                		{else}	                		
	                			{'show_option_control'|fire:$group:$options}
	                		{/if}	                		
	                		<div class="form-actions" style="margin:0">						            	
								<button class="btn btn-danger" type="reset">重置选项</button>
								<button class="btn btn-primary" type="submit">保存选项</button>
							</div>
	                	</div>	                	
	                </div>
	          	</div>
			</div>			
	    </form>      	
		<script type="text/javascript" src="{'jquery-1.7.1.js'|jquery}"></script>
		<script type="text/javascript" src="{'ui/jquery-ui-1.8.20.c.js'|jquery}"></script>
		<script type="text/javascript" src="{'bootstrap/bootstrap.js'|shared}"></script>
		<script type="text/javascript" src="{'jquery.form.js'|jquery}"></script>
		<script type="text/javascript" src="{'plugins/jquery.validate.js'|jquery}"></script>
		<script type="text/javascript" src="{'common.js'|shared}"></script>
		<script type="text/javascript" src="options.js"></script>
		{'core_option_foot'|fire}
	</body>
</html>
